package com.footair.dy;

import android.content.Context;
import android.content.Intent;

public class PlayManager {

    static PlayManager mPlayManager;
    private Intent service1;

    public static PlayManager getIntance() {
        if (mPlayManager == null) {
            mPlayManager = new PlayManager();

        }
        return mPlayManager;
    }

    /**
     * 开启服务
     */
    public void start(Context context) {
        service1 = new Intent(context, PopService.class);
        context.startService(service1);
    }

    /**
     * 关闭服务
     */
    public void stop(Context context) {
        context.stopService(service1);
    }
}
